package 设计模式.结构模式.装饰模式;

/**
 * @author MT
 * @date 2019-11-13 17:58
 */
public class 装饰模式 {

    public static void main(String[] args) {
        Component p = new ConcreteComponent();
        p.operation();
        System.out.println("---------------------------------");
        Component d = new ConcreteDecorator(p);
        d.operation();
    }
}
